package com.springboot.frame.comm.database.provider;

/**
 * H2的代码生成语句
 *
 * @author madman
 */
public final class H2SqlProvider implements SqlProvider {

  /**
   * 全局实例
   */
  public static final H2SqlProvider INSTANCE = new H2SqlProvider();

  private H2SqlProvider() {
  }

  @Override
  public String tables() {
    return "show tables";
  }


  @Override
  public String tableName() {
    return "TABLE_NAME";
  }

  @Override
  public String tableComment() {
    return "";
  }

  @Override
  public String tableFields(String dbTableName) {
    return "show full fields from " + dbTableName;
  }

  @Override
  public String fieldName() {
    return "FIELD";
  }

  @Override
  public String fieldType() {
    return "TYPE";
  }

  @Override
  public String fieldComment() {
    return "COMMENT";
  }

  @Override
  public String primaryKey() {
    return "KEY";
  }

}
